import {
  createRouter,
  createWebHistory,
  createWebHashHistory,
} from "vue-router";
const routes = [
  {
    path: "/",
    redirect: "/webview",
  },
  {
    path: "/webview",
    component: () => import("@/pages/webview/webview.vue"),
  },
  {
    path: "/webviewbk",
    component: () => import("@/pages/webview/webviewbk.vue"),
  },
  {
    name: "webviewVideo",
    path: "/webviewVideo",
    component: () => import("@/pages/webview/webviewVideo.vue"),
  },
  {
    name: "webvideoPlay",
    path: "/webvideoPlay",
    component: () => import("@/pages/webview/webvideoPlay.vue"),
  },
  {
    path: "/webvideoBk",
    component: () => import("@/pages/webview/webvideoBk.vue"),
  },
  {
    path: "/meetIndex",
    component: () => import("@/pages/webview/meetIndex.vue"),
  },
  {
    path: "/videoIndex",
    name: "videoIndex",
    component: () => import("@/pages/webview/appVideoPreview/videoIndex.vue"),
  },
];

// 3. 创建路由实例并传递 `routes` 配置
// 你可以在这里输入更多的配置，但我们在这里
// 暂时保持简单
const router = createRouter({
  // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
  history: createWebHashHistory("/enforcement/"),
  // base: '/enforcement/',
  routes, // `routes: routes` 的缩写
});

export default router;
